package com.sky.mapper;

import com.sky.entity.AddressBook;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserAddressBookMapper {
    void insert(AddressBook addressBook);

    List<AddressBook> selectAddressByCurrentId(AddressBook addressBook);

    AddressBook selectDefaultAddressByCurrentId(AddressBook addressBook);

    void update(AddressBook addressBook);

    void delete(Long id);

    AddressBook selectAddressById(Long id);

    void setDefaultAddress(AddressBook addressBook);
}
